<?php
class JiaThisWidget extends YWidget{
	public $type = ''; //可用24 | 32
	public function run(){
		if(!empty($this->type)){
			$this->type = '_' . $this->type . 'x' . $this->type;
		}
		
		$this->cs->registerScriptFile('http://v3.jiathis.com/code/jia.js?uid=1382803933467664', CClientScript::POS_END);

		$this->_show();
	}
	
	private function _show(){
		echo 
'<div class="jiathis_contner jiathis_style' . $this->type . '">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_renren"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>';
	}
}

?>